<?php
return [
    'class' => 'yii\web\UrlManager',
    'enablePrettyUrl' => true,
    'showScriptName' => false,
    'rules' => [
        // Pages
        [
            'pattern' => 'cms/page/<slug>',
            'route' => 'cms/page/view'
        ],
        
        // Articles
        [
            'pattern' => 'cms/article/index',
            'route' => 'cms/article/index'
        ],
        [
            'pattern' => 'cms/article/attachment-download',
            'route' => 'cms/article/attachment-download'
        ],
        [
            'pattern' => 'cms/article/<slug>',
            'route' => 'cms/article/view'
        ]
    ]
];
